from typing import Any, Callable

from punq import Container, Scope


def register_settings(container: Container, cls: Callable[..., Any]) -> None:
    container.register(cls, factory=lambda: cls(), scope=Scope.singleton)
